<html><head><title>Drag and Drop With the Data Source View</title><meta name="filename" content="text/common/guide/dragdrop_beamer"/><meta name="language" content="en-US"/><help:css-file-link xmlns:help="http://openoffice.org/2000/help"/><!--The CSS style header method for setting styles--><style type="text/css">
table.Tabelle1{
margin-left:0cm; margin-right:0.005cm;}
span.Tabelle1A{
width:1.499cm;}
span.Tabelle1B{
width:16.496cm;}
table.Tabelle2{
}
span.Tabelle2A{
width:1.499cm;}
span.Tabelle2B{
width:16.498cm;}
tr.Tabelle21{
}
td.Tabelle2A1{
}
p.P1{
}
p.P2{
}
span.T1{
font-weight:bold;}
span.fr1{
}
span.fr2{
}
</style></head><body>
<p class="P1"/>
<p class="Head1"><help:key-word value="drag and drop; data source view" tag="kw68259_2" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="data source view; drag and drop" tag="kw68259_3" xmlns:help="http://openoffice.org/2000/help"/><help:to-be-embedded Eid="dragdrop_beamer" xmlns:help="http://openoffice.org/2000/help"><help:link Id="68259">Drag and Drop With the Data Source View</help:link></help:to-be-embedded></p>
<p class="Paragraph">The simplest and quickest way of transferring data from a data source into a text or spreadsheet document, or creating forms based on a data source, is the drag-and-drop method.</p>
<p class="Paragraph"><help:key-word value="Copying with Drag&Drop" tag="kw68259_1" xmlns:help="http://openoffice.org/2000/help"/>Copying with Drag&Drop</p>
</span></th></tr></table>
<p class="Paragraph">If you make a mistake during drag and drop and want to reverse the function, position the cursor in your document and choose the Undo command from the <span class="T1">Edit</span> menu (or via the keyboard).</p>
<p class="Paragraph">Copying by drag and drop is likewise possible in the other direction:</p>
<ul class="L1">
<li class="">
<p class="P2">A text table or a selected range of a spreadsheet can be dragged using drag and drop to a table container in the data source explorer.</p>
</li>
<li class="">
<p class="P2">Simpler text can be copied using drag and drop from one document to a data field in the data source view. You can read up on how this happens in the <help:link Id="65806" Eid="dddoktab" xmlns:help="http://openoffice.org/2000/help"><help:productname>%PRODUCTNAME</help:productname> Help</help:link>.</p>
</li>
</ul>
</span></th></tr></table>
<p class="Head3">Using data in a text document</p>
<p class="Paragraph">You can insert a database field in a text document by dragging a field name from the column header of the data source view into the document. This inserts a field for this database field in the document. This is especially useful when designing form letters. Simply drag the desired fields - home address, form of address etc. - into your document.</p>
<p class="Paragraph">The best way to insert a complete record is to select the corresponding header and drag it into the document. When you release the mouse button, the <help:link Id="65967" xmlns:help="http://openoffice.org/2000/help"><span class="T1">Insert database columns</span></help:link> dialog appears, where you can decide whether to use all database fields, and whether to copy the data into the document as text, a table or fields. All currently selected records will be inserted.</p>
<p class="Head3">Applying data to a table document</p>
<p class="Paragraph">You can insert one or more records into the current sheet of a spreadsheet by selecting the rows in the data source view and dragging and dropping them into the spreadsheet. <text:s text:c="" xmlns:text="http://openoffice.org/2000/text"/>The data is inserted in the place where you release the mouse button.</p>
<p class="Head3">Inserting controls in a text form</p>
<p class="Paragraph">When you create a text form linked to a database, you can generate controls by drag-and-drop from the data source view:</p>
<p class="Paragraph">When you drag a database column into the text document, you insert a field. If you hold down (Shift)<help:switch select="System" xmlns:help="http://openoffice.org/2000/help"><help:case select="MAC">(Command)</help:case><help:default>(Ctrl)</help:default></help:switch> while dragging, a text field is inserted, grouped with an appropriate label field. The text field already contains all the database information that you need for the form.</p>